﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{
    class SJSXXNDBFConst
    {
        public const int RECORD_LENGTH = 302;
        public const int HEADER_LENGTH = 1730;
        public class Fields
        {
            private Fields() { }
            static Fields()
            {
                StkId = new DBFRecordFieldAttribute(0, 6);
                StkName = new DBFRecordFieldAttribute(6, 8);
                StkIndustryType = new DBFRecordFieldAttribute(56, 3);
                TradeUnit = new DBFRecordFieldAttribute(164,4);
                TotalCirculatingShare = new DBFRecordFieldAttribute(80, 12);
                TradeDate = new DBFRecordFieldAttribute(140, 8);
                TotalIssueQty = new DBFRecordFieldAttribute(68, 12);
                SuspendedFlag = new DBFRecordFieldAttribute(14, 4);
                MaxOrderPrice = new DBFRecordFieldAttribute(209, 9);
                MinOrderPrice = new DBFRecordFieldAttribute(218, 9);
                TradeStatus = new DBFRecordFieldAttribute(266,1);
            }

            public static DBFRecordFieldAttribute StkId { get; private set; }
            public static DBFRecordFieldAttribute StkName { get; private set; }
            public static DBFRecordFieldAttribute StkIndustryType { get; private set; }
            public static DBFRecordFieldAttribute TradeUnit { get; private set; }
            public static DBFRecordFieldAttribute TotalCirculatingShare { get; private set; }
            public static DBFRecordFieldAttribute TradeDate { get; private set; }
            public static DBFRecordFieldAttribute TotalIssueQty { get; private set; }
            public static DBFRecordFieldAttribute SuspendedFlag { get; private set; }
            public static DBFRecordFieldAttribute MaxOrderPrice { get; private set; }
            public static DBFRecordFieldAttribute MinOrderPrice { get; private set; }
            public static DBFRecordFieldAttribute TradeStatus { get; private set; }
        }
    }
}
